

#ifndef GLOBALS_VARIABLE_H_
#define GLOBALS_VARIABLE_H_

#include "QueryStructures.h"

#include "../Global/StructureHeaders.h"
#include"../Global/GlobalVar.h"

//parser related structure
QueryStructures *queryStruct;
char currentlyOpenedDatabase[256];
char executionTime[512];
char numberOfRowsReturned[512];

//cannot return error codes in constructor,
//hack to get error code from there.
int constructorErrorStatus;

bool BPLUSTREE_DEBUG = false;
bool HEAP_VERBOSE = false;
bool COMMON_DEBUG = false;
bool USING_INDEX = true;
bool  USE_CLIENT_SIDE_SORT = false;
//bool USE_MMAP = false;
bool IS_CACHE_ON = false;
long TOTAL_MEMORY_ALLOCATED = 0;
long TOTAL_MEMORY_DEALLOCATED = 0;

int ROWS_PER_PAGE = 25;

CACHE_INDEX cache_index[MAX_FILES];
bool isDBOpen = false;

//long timeTaken, seconds, microSecs;

#endif
